package com.version.manager.controller.shop;

import com.version.manager.controller.BaseController;
import com.version.manager.entity.Shop.shopGoodsColor;
import com.version.manager.model.Msg;
import com.version.manager.service.Shop.shopGoodsColorService;
import com.version.manager.util.QueryParam;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@Api(value = "shopGoodsColorController")
@RequestMapping("/api/shop/shopGoodsColor")
public class shopGoodsColorController extends BaseController<shopGoodsColorService, shopGoodsColor> {
    @Autowired
    private shopGoodsColorService service;
    @GetMapping("getColor")
    @ResponseBody
    public Msg getColor(String goodsId){
        return  service.getColor(goodsId);
    }
}

